import { defineConfig } from "tsup";

export default defineConfig(({ watch })=> {
  return {
    clean: !watch,
    minify: !watch,
    shims: !watch,
    format: ["esm", "cjs"],
    outExtension(ctx) {
      return { js: `.${ctx.format}.js` };
    },
  }
});
